package cn.tx.redis7.controller;

import cn.tx.redis7.service.GuavaBloomFilterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author jizenan
 * @date 2025/6/5
 * Description:
 */
@Api(tags = "google工具guava处理布隆过滤器")
@RestController
@Slf4j
public class GuavaBloomFilterController {

    @Resource
    private GuavaBloomFilterService guavaBloomFilterService;

    @ApiOperation("guava布隆过滤器插入100万样本数据并额外10w测试是否存在")
    @GetMapping("/guavafilter")
    public void guavaBloomFilter(){
        guavaBloomFilterService.guavaBloomFilter();
    }
}
